// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class PowerGenerationStatisticsCenter : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<PowerGenerationStatisticsCenter, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string AreaCode { get; set; }
        public string PrjCode { get; set; }
        public string ParentCode { get; set; }
        public string AreaName { get; set; }
        public string ParentName { get; set; }
        public string Level { get; set; }
        public DateTime? CreateDateTime { get; set; }
        public int? CountTotal { get; set; }
        public decimal? TimeTotal { get; set; }
        public decimal? CostTotal { get; set; }
        public int? CountYD { get; set; }
        public decimal? TimeYD { get; set; }
        public decimal? CostYD { get; set; }
        public int? CountLT { get; set; }
        public decimal? TimeLT { get; set; }
        public decimal? CostLT { get; set; }
        public int? CountDX { get; set; }
        public decimal? TimeDX { get; set; }
        public decimal? CostDX { get; set; }
    
        public void Configure(EntityTypeBuilder<PowerGenerationStatisticsCenter> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.AreaName)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.CostDX).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.CostLT).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.CostTotal).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.CostYD).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.CreateDateTime).HasColumnType("date");

                entityBuilder.Property(e => e.Level)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.ParentCode)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.ParentName)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.PrjCode)
                    .HasMaxLength(255)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.TimeDX).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.TimeLT).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.TimeTotal).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.TimeYD).HasColumnType("decimal(18, 4)");
        }

    }
}

